<?php 

	try{
		$db = new mysqli('localhost','root','','fiuba');
	}catch(Exception $ex){
		echo "error: ";
	}
	
	header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    // Date in the past
	header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header ("Cache-Control: no-cache, must-revalidate");  // HTTP/1.1
	header ("Pragma: no-cache");
	//header ("Content-type: application/xml"); //uncomment this line if you plan to send XML

	//...................
	//echo "you should see now random numbers in your browser:".rand();
	
	$query = "delete from fiuba.subject";			
	$db->query($query);	

	$query = "delete from fiuba.shift";			
	$db->query($query);		

	$query = "delete from fiuba.schedule";			
	$db->query($query);		
	
	$db->close();
		
?>